/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.userAnalysis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * 每日统计留存用户实体类
 *
 * @author BladeX
 * @since 2020-08-31
 */
@Data
@TableName("t_u_daily_retained_users_report")
@ApiModel(value = "DailyRetainedUsersReport对象", description = "每日统计留存用户")
public class DailyRetainedUsersReport implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@Column(columnDefinition = " bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键' ")
	private Integer id;
	/**
	 * 日期
	 */
	@ApiModelProperty(value = "日期")
	private String date;
	/**
	 * 类型 1：留存用户 2留存新用户 3留存老用户 4流失用户 5回流用户
	 */
	@ApiModelProperty(value = "类型 1：留存用户 2留存新用户 3留存老用户 4流失用户 5回流用户")
	private Integer type;
	/**
	 * 次日
	 */
	@ApiModelProperty(value = "次日")
	private Integer secondDay;
	/**
	 * 7日
	 */
	@ApiModelProperty(value = "7日")
	private Integer sevenDay;
	/**
	 * 15日
	 */
	@ApiModelProperty(value = "15日")
	private Integer fifteenDay;
	/**
	 * 30日
	 */
	@ApiModelProperty(value = "30日")
	private Integer thirtyDay;
	/**
	 * 60日
	 */
	@ApiModelProperty(value = "60日")
	private Integer sixtyDay;
	/**
	 * 90日
	 */
	@ApiModelProperty(value = "90日")
	private Integer ninetyDay;

	/**
	 * 创建时间
	 */
	@Column(columnDefinition = "  datetime COMMENT '创建时间' ")
	private Date created;
}
